<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 吴文付
// +----------------------------------------------------------------------

namespace Addons\ImgCarousel\Controller;
use Home\Controller\AddonsController; 

class ImgCarouselController extends AddonsController{

	public function  updateImgInfo(){
		
		
		$Img = M('AddonsImgcarousel');
		$data =array(
			
			'describe'=>I('POST.describe'),
			'url'=>I('POST.url')
		);
		
		
		
		
		if($Img->where('pid='.I('POST.pid'))->save($data)==false){
			echo '更新错误';
		}else{
			echo '更新成功';
		}
		
	}
}
